'use strict'

const BaseController  = require('./base');

class CollectController extends BaseController {
    async collectListByUser(){
        const data  = await this.ctx.service.collect.collectListByUser(this.ctx.request.body)
        this.success(data)
    }

    async changeCollectStatus(){
        const data = await this.ctx.service.collect.changeCollectStatus(this.ctx.request.body)
        this.success(data)
    }
}

module.exports = CollectController;